/*
    libverbose is a library for use in troubleshooting other software
    Copyright (C) 2008 Brock Noland

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#ifndef CONFIG_H
# define CONFIG_H
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

extern void parse_config (void);

extern int logging_this_ip (const char *ip);

extern int logging_current_user (void);

extern void start_logging_fd (int fd);

extern void stop_logging_fd (int fd);

extern int logging_this_fd (int fd);

extern void start_logging ();

extern void stop_logging ();

/* booleans and counter configuration options
 **/
extern int configurable_log_outgoing;
extern int configurable_log_popen;
extern int configurable_num_sends_logged;
extern int configurable_log_write;
extern int configurable_verbose;
extern int configurable_log_execl;
extern int configurable_log_execv;
extern int configurable_log_execle;
extern int configurable_log_execve;
extern int configurable_log_execlp;
extern int configurable_log_execvp;

#define MAX_LOG_LEN         (int)(LINE_MAX/2)
#define LOG_PREFIX          "libv"


#endif
